package com.ruoyi.laiwu.service;

import com.ruoyi.laiwu.domain.LwAlarmDetail;
import com.ruoyi.laiwu.domain.vo.LwAlarmDetailVo;
import com.ruoyi.laiwu.domain.bo.LwAlarmDetailBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 告警详情Service接口
 *
 * @author ruoyi
 * @date 2024-03-08
 */
public interface ILwAlarmDetailService {

    /**
     * 查询告警详情
     */
    LwAlarmDetailVo queryById(Long id);

    /**
     * 查询告警详情列表
     */
    TableDataInfo<LwAlarmDetailVo> queryPageList(LwAlarmDetailBo bo, PageQuery pageQuery);

    /**
     * 查询告警详情列表
     */
    List<LwAlarmDetailVo> queryList(LwAlarmDetailBo bo);

    /**
     * 新增告警详情
     */
    Boolean insertByBo(LwAlarmDetailBo bo);

    /**
     * 修改告警详情
     */
    Boolean updateByBo(LwAlarmDetailBo bo);

    /**
     * 校验并批量删除告警详情信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    LwAlarmDetailVo queryByAlarmId(Long subId);
}
